package com.stn.zjx.givingtreasure.activity.userwallet;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.ActivityCompat;
import android.support.v4.content.ContextCompat;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.baoyachi.stepview.VerticalStepView;
import com.came.viewbguilib.ButtonBgUi;
import com.stn.zjx.givingtreasure.R;
import com.stn.zjx.givingtreasure.base.BaseActivity;
import com.stn.zjx.givingtreasure.event.NetWorkEvent;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class UserWithDrawResultDetailActivity extends BaseActivity {


    @BindView(R.id.back_bt)
    RelativeLayout backBt;
    @BindView(R.id.action_title)
    TextView actionTitle;
    @BindView(R.id.web_title)
    TextView webTitle;
    @BindView(R.id.action_add_bt)
    RelativeLayout actionAddBt;
    @BindView(R.id.action_refresh)
    RelativeLayout actionRefresh;
    @BindView(R.id.exit)
    RelativeLayout exit;
    @BindView(R.id.sure_bt)
    TextView sureBt;
    @BindView(R.id.skip_bt)
    TextView skipBt;
    @BindView(R.id.share_bt)
    RelativeLayout shareBt;
    @BindView(R.id.more_bt)
    RelativeLayout moreBt;
    @BindView(R.id.scan_bt)
    RelativeLayout scanBt;
    @BindView(R.id.release_bt)
    ButtonBgUi releaseBt;
    @BindView(R.id.search_iv)
    ImageView searchIv;
    @BindView(R.id.search_edit)
    EditText searchEdit;
    @BindView(R.id.search_bg)
    RelativeLayout searchBg;
    @BindView(R.id.save_bt)
    TextView saveBt;
    @BindView(R.id.finish_bt)
    TextView finishBt;
    @BindView(R.id.step_view0)
     VerticalStepView stepView0;

    @Override
    public void networkStatus(NetWorkEvent netWorkEvent) {

    }


    @Override
    public void initComponent() {
        actionTitle.setText(getString(R.string.result_detail));
        finishBt.setVisibility(View.VISIBLE);
        List<String> list0 = new ArrayList<>();

        list0.add("<font color='#333333'>提现申请已提交，等待银行处理大飒飒所多</font><br/>" +
                "dsadsasdsdsadsd");
        list0.add("预计2小时内（19:49前）到账");

        stepView0.setStepsViewIndicatorComplectingPosition(1)//设置完成的步数
                .reverseDraw(false)//default is true
                .setStepViewTexts(list0)//总步骤
                .setStepsViewIndicatorCompletedLineColor(ActivityCompat.getColor(this, R.color.default_blue))
                .setStepsViewIndicatorComplectingPosition(1)
                .setStepViewComplectedTextColor(R.color.default_blue)
                .setStepViewComplectedTextColor(R.color.default_blue)

                .setStepsViewIndicatorCompleteIcon(ContextCompat.getDrawable(this, R.mipmap.my_step_finish))
                .setStepsViewIndicatorUnCompletedLineColor(ActivityCompat.getColor(this, R.color.gray))
                .setStepsViewIndicatorDefaultIcon(ContextCompat.getDrawable(this, R.mipmap.my_step_no))
                .setStepViewUnComplectedTextColor(ActivityCompat.getColor(this, R.color.gray))
        ;
    }

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_user_withdraw_result_detail);
        ButterKnife.bind(this);
        initComponent();

    }


    @OnClick({R.id.back_bt, R.id.finish_bt})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.back_bt:
                finish();
                break;

            case R.id.finish_bt:
                finish();
                break;
        }
    }
}
